package com.wm.androidmvp.presenter

import com.wm.androidmvp.model.MainModel
import com.wm.androidmvp.view.MainView
import com.wm.mvp.BasePresenter

class MainPresenter:BasePresenter<MainModel,MainView>() {

    fun getData(){
        var data = model?.startRequest()
        getView()?.setData(data)
    }

    override fun onViewDestroy() {
        model?.stopRequest()
    }
}